selfSummary = function(){
	
	//主题
    var Title = new Ext.form.TextField({
    	id:'title',
        width: 20,
        allowBlank: false,
        maxLength:100,
        name: 'username',
        fieldLabel: '标题',
        blankText: '请输入标题',
        maxLengthText: '姓名不能超过100个字符'
    });
  
  //内容
    var content = new Ext.form.HtmlEditor({
    	id:'content_text',
        fieldLabel: '内容',
        width: 20,
        height: 300
    });
 
	var panel = new Ext.form.FormPanel( {
		id : "summaryPanel",
		layout : "form",
		items:[  
	       Title,   
	       content
	    ], 
	    buttons : [ {
			xtype : "button",
			text : "保存",
			pressed : false,
			handler : validatorData
		}],
		buttonAlign : "center"

	});
	
	function validatorData() {
		var title = Ext.getCmp('title').getValue();
		var content_text = Ext.getCmp('content_text').getValue();
		
		if(panel.getForm().isValid()){
			panel.getForm().submit({
				waitTitle : '提示',//标题
				waitMsg : '正在提交数据请稍后...',//提示信息
				url : 'insertSummaryAction.action',
				method : 'post',
				params : {
					title : title,
					contentText:content_text
				}, //参数
				success : function(form, action) {
					var flag=action.result;
					if (flag.success == true) {
						Ext.Msg.alert("提示", "保存成功！");
						panel.getForm().reset();
					} else {
						Ext.Msg.alert("提示", "保存失败！");
					}
				},
				failure : function(form,action) {   
					if(action.result.success){
						Ext.Msg.alert("提示", "保存成功！");
					}else{
					Ext.Msg.alert("提示","保存失败！");
					}
				}
			});
		}
		else{
			Ext.Msg.alert("提示","请完善信息！");
		}
	}
 
	return panel;
  
}